package com.it.travel.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_order")
public class Order {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String productName;
    private Double totalAmount;  // 订单总价格
    private Double actualAmount;     // 实际支付总价格
    private String orderRemark;  // 订单备注
    private Long createTime;  // 订单创建时间
    private Long updateTime; // 订单更新时间
    private Long deliveryTime;  // 发货时间
    private Long flishTime; // 完成时间
    private Long cancelTime; // 取消时间
    @TableLogic
    private Integer isDeleted;
    private Integer payType;  // 支付方式
    private String orderNum;  // 订单编号
    private Integer orderStatus; // 订单状态 0未支付 1已支付
}
